<#if formField.hidden?? && formField.hidden=="1">
	<input type=hidden name="fieldMap['${field.name}'].id"  <#if businessInstanceField?? && businessInstanceField.id??>value="${businessInstanceField.id}"</#if>>
	<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
	<input type=hidden id=${field.name} name="fieldMap['${field.name}'].value" <#if businessInstanceField??>value="${businessInstanceField.value}"</#if>></input>
<#else>
	<#if formField.readonly?? && formField.readonly=="1">
		<input type=hidden name="fieldMap['${field.name}'].id"  <#if businessInstanceField?? && businessInstanceField.id??>value="${businessInstanceField.id}"</#if>>
		<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
		<input type=hidden id="${field.name}" name="fieldMap['${field.name}'].value"   <#if businessInstanceField?? && businessInstanceField.value??>value="${businessInstanceField.value}"</#if>>
		<#if businessInstanceField??>
			<#if businessInstanceField.displayValue??>
				${businessInstanceField.displayValue?default('')}
			<#else>
				${businessInstanceField.value?default('')}
			</#if>
		</#if>
	<#else>
		<script>
		$(function(){
			allCheck();
			$('input[type="checkbox"]',document.getElementById('${field.name}div')).change(function(){
				allCheck();
			});
		})
		function allCheck(){
			var value = '';
				var allCheck = true;
				$('input[type="checkbox"]',document.getElementById('${field.name}div')).each(function(){
					if(this.id!='${field.name}checkAll') {
						if($.browser.msie&&($.browser.version == "6.0" || $.browser.version == "7.0")){
							if(this.checked){
								value += (this.value+',');
							} else {
								allCheck = false;
							}
						} else {
							if($(this)[0].checked){
								value += (this.value+',');
							} else {
								allCheck = false;
							}
						}
					}
				});
				if(value!='') {
					value = value.substring(0,value.length-1);
				}
				document.getElementById('${field.name}value').value = value;
				var validator = $.data($('#form1')[0], 'validator');
				if(validator) {
					validator.form();
				}
				var allCheckInput = document.getElementById('${field.name}checkAll');
				if($.browser.msie&&($.browser.version == "6.0" || $.browser.version == "7.0")){
						if(allCheckInput.checked){
							if(!allCheck) {
								allCheckInput.checked = false;
							}
						} else {
							if(allCheck) {
								allCheckInput.checked = true;
							}
						}
				} else {
					if($(allCheckInput)[0].checked){
						if(!allCheck) {
							$(allCheckInput)[0].checked = false;
						}
					} else {
						if(allCheck) {
							$(allCheckInput)[0].checked = true;
						}
					}
				}
		
		}
		</script>
		<input type=hidden name="fieldMap['${field.name}'].id"  <#if businessInstanceField?? && businessInstanceField.id??>value="${businessInstanceField.id}"</#if>>
		<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
		<input type=hidden id="${field.name}value" name="fieldMap['${field.name}'].value" <#if formField.required?? && formField.required=="1">datarule="string"  datarulejson='{"displayName":"${field.displayName}","dataType":"string","isRequired":"1"}'</#if> value="${businessInstanceField.value?default('')}"></input>
		<label style="cursor:pointer;"><input type="checkbox" id="${field.name}checkAll" value="" onclick="$.tdqsCheckAll(this, '#${field.name}div');"/>&nbsp;全部</label>&nbsp;&nbsp;
		<span id="${field.name}div">
		<#if value_list??>
		<#list value_list as obj>
			<label style="cursor:pointer;"><input type="checkbox" <#if valueMap?? && valueMap[obj.name]??>checked="checked"</#if> value="${obj.value?default('')}"/>&nbsp;${obj.name}</label>&nbsp;&nbsp;
		</#list>
		</#if>
		</span>
	</#if>
</#if>